import request from '@/utils/request.ts'

const PREFIX = '/wx'
const GET_NEW_URL = '/'
const POST_URL = '/getQrCode'
const SUBSCRIBE_URL = '/subscribe'

export const getNewToken = async () => {
    return await request.get(PREFIX)
}
export const getQrCodeSync = async (data: any) => {
    return await request.post(POST_URL, data)
}
export const subscribe1 = async (data: any) => {
    return await request.post(SUBSCRIBE_URL, data)
}